package game.assist.diablo3.ui;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;

public class TabView extends LinearLayout {
	private int mIndex;

	public TabView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public void init(String text, int index) {
		mIndex = index;

		// display title
		TextView textView = (TextView) findViewById(android.R.id.text1);
		// TabView textSize
		textView.setTextSize(17f);
		// TabPageIndicator's Indicator width
		// textView.setWidth(ConfigValue.IndicatorTextViewWidth);
		textView.setText(text);
	}

	public int getIndex() {
		return mIndex;
	}
}
